home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 7: Sunsite
/
Linux Cubed Series 7 - Sunsite Vol 1.iso
/
system
/
serial
/
callback.001
/
callback~
/
callback
/
lib
/
dname
/
lookdname.c
< prev
Wrap
C/C++ Source or Header
|
1996-07-21
|
332b
|
16 lines
#include "dname.p"
int look_dname(char *dname)
{
int
index;
for (index = 0; index < ndnames; index++) /* look for the target */
{
if (!strcmp(dname_vector[index].name, dname)) /* name found */
return (index); /* ok */
}
return (-1); /* not found */
}